From: Florian Müllner Date: Fri, 26 Feb 2021 13:46:22 +0000 (+0100) Subject: ci: Add commit rule to not end subject with punctuation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~236 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=175175fac850019d3224bb4734886fa414aefe73;p=gnome-shell.git ci: Add commit rule to not end subject with punctuation I recently forgot to fill in the subject after the prefix. Add a commit rule for catching this and other cases where subject lines end in punctuation (except ...) Part-of: --- diff --git a/.gitlab-ci/commit-rules.yml b/.gitlab-ci/commit-rules.yml index 9770f4515..5828f8ad5 100644 --- a/.gitlab-ci/commit-rules.yml +++ b/.gitlab-ci/commit-rules.yml @@ -11,3 +11,6 @@ patterns: - regex: '^\S*\.(js|c|h):' message: Commit message subject prefix should not include .c, .h etc. where: subject + - regex: '([^.]\.|[:,;])\s*$' + message: Commit message subject should not end with punctuation + where: subject